package 作业;

import java.util.*;

public class three {


        public static class Example {
            public static void main(String args[]) {
                Map map=new HashMap();
                map.put("12","葫芦娃");
                map.put("5","大鹏鸟");
                map.put("10","钢铁侠");
                map.put("6","白骨精");
                map.put("1","孙悟空");
                map.put("4","唐玄丈");;
                map.put("2","猪八戒");
                map.put("3","沙和尚");
                map.put("7","哪吒");
                map.put("14","科比");
                map.put("8","二郎神");
                map.put("9","蜘蛛侠");
                map.put("11","凯撒");
                map.put("13","奥特曼");
                map.put("15","姚明");
                Set keySet=map.keySet();
                Iterator it=keySet.iterator();
                while(it.hasNext()) {
                    Object key=it.next();
                    Object value=map.get(key);
                    System.out.println(key+":"+value);
                }
            }
        }

    }

